<h2>Creating New Model</h2>
<?
  $name = trim($_REQUEST['entityname']);
  $filename = 'models/'.strtolower($name).'.model.php';

  if ($name == '')
  {
    print('ERROR: you have to give it a name!');
  }
  else if (file_exists($filename))
  {
    print('ERROR: there already is a file called "'.$filename.'"!');
  }
  else
  {
  
  }

?>